<template>
	<view>
		<view class="container">
			<view class="table-view">
				<view class="title">评价明细</view>
				<view class="date-row">
					<view class="left">
						<picker mode="date" fields="month" @change="onDateChange">
							{{date.format('yyyy年MM月')}}
							<uni-icons type="bottom"></uni-icons>
						</picker>
					</view>
					<!-- <view class="right"> -->
						<!-- <view class="item">总评分：14</view> -->
						<!-- <view class="item">评价次数：4</view> -->
					<!-- </view> -->
				</view>
				<view class="item-row" v-for="i in 20">
					<view class="date">
						<view class="day">10</view>
						<view class="week">周日</view>
					</view>
					<view class="left">
						<view class="name">评价人：李莉</view>
						<view class="order">订单 610600000000008888</view>
					</view>
					<view class="right score-text">3</view>
				</view>
				
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				date:null
			}
		},
		onLoad() {
			this.date = new Date()
		},
		methods: {
			navBack(){
				uni.navigateBack()
			},
			onDateChange(e){
				console.log(e);
				this.date = new Date(e.detail.value)
			}
		}
	}
</script>

<style>
	page{
		background: white;
	}
</style>
<style lang="scss" scoped>
.top-view{
	height: 700rpx;
	background: linear-gradient(to bottom,rgba(207,234,238,1),rgba(207,234,238,0));
}
.container{
	display: flex;
	flex-direction: column;
}

.table-view{
	width: 100%;
	display: flex;
	flex-direction: column;
	background: white;
	padding: 40rpx;
	box-sizing: border-box;
	.title{
		color: #232323;
		font-size: 32rpx;
		font-weight: 600;
	}
	.date-row{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 32rpx;
		.left{
			font-size: 36rpx;
			color: #232323;
			display: flex;
			align-items: center;
		}
		.right{
			display: flex;
			align-items: center;
			.item{
				margin-left: 24rpx;
				color: #232323;
				font-size: 24rpx;
			}
		}
	}
	
	.item-row{
		min-height: 146rpx;
		border-bottom: solid 2rpx #F8F8F8;
		display: flex;
		align-items: center;
		.date{
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			.day{
				font-size: 40rpx;
				font-weight: bold;
				color: #232323;
			}
			.week{
				font-size: 30rpx;
				color: #232323;
			}
		}
		.left{
			flex: 1;
			margin-left: 20rpx;
			.name{
				color: #232323;
				font-size: 32rpx;
				font-weight: 400;
			}
			.order{
				color: rgba(35,35,35,0.5);
				font-size: 24rpx;
				font-weight: 400;
				margin-top: 10rpx;
			}
		}
		.right{
			font-size: 36rpx;
			font-weight: 500;
		}
		.score-text{
				color: #E30E0E;
		}
	}
	
}

</style>
